package com.bean;


import java.util.Objects;

/**
 * @Author: 柏竹
 * @Description:
 * @Date_Created_in: 2021-05-29 8:59
 * @Modified_By: Sans
 * @Project:
 */
public class BootStrapTableUser {
    private int id;
    private String idnumber;
    private String username;
    private String userphone;
    private String password;
    private String loginip;
    private String loginime;
    private String createtime;
    private String ip;
    private boolean user;
    
    
    public BootStrapTableUser() {
    }
    
    public BootStrapTableUser(int id , String idnumber , String username , String userphone , String password , String loginip , String loginime , String createtime , String ip) {
        this.id = id;
        this.idnumber = idnumber;
        this.username = username;
        this.userphone = userphone;
        this.password = password;
        this.loginip = loginip;
        this.loginime = loginime;
        this.createtime = createtime;
        this.ip = ip;
    }
    
    public int getId() {
        return id;
    }
    
    public void setId(int id) {
        this.id = id;
    }
    
    public String getIdnumber() {
        return idnumber;
    }
    
    public void setIdnumber(String idnumber) {
        this.idnumber = idnumber;
    }
    
    public String getUsername() {
        return username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }
    
    public String getUserphone() {
        return userphone;
    }
    
    public void setUserphone(String userphone) {
        this.userphone = userphone;
    }
    
    public String getPassword() {
        return password;
    }
    
    public void setPassword(String password) {
        this.password = password;
    }
    
    public String getLoginip() {
        return loginip;
    }
    
    public void setLoginip(String loginip) {
        this.loginip = loginip;
    }
    
    public String getLoginime() {
        return loginime;
    }
    
    public void setLoginime(String loginime) {
        this.loginime = loginime;
    }
    
    public String getCreatetime() {
        return createtime;
    }
    
    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }
    
    public String getIp() {
        return ip;
    }
    
    public void setIp(String ip) {
        this.ip = ip;
    }
    
    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        BootStrapTableUser that = (BootStrapTableUser) o;
        return id == that.id && Objects.equals(idnumber , that.idnumber) && Objects.equals(username , that.username) && Objects.equals(userphone , that.userphone) && Objects.equals(password , that.password) && Objects.equals(loginip , that.loginip) && Objects.equals(loginime , that.loginime) && Objects.equals(createtime , that.createtime) && Objects.equals(ip , that.ip);
    }
    
    @Override
    public int hashCode() {
        return Objects.hash(id , idnumber , username , userphone , password , loginip , loginime , createtime , ip);
    }
    
    public boolean isUser() {
        return user;
    }
    
    public void setUser(boolean user) {
        this.user = user;
    }
    
    @Override
    public String toString() {
        return "BootStrapTableUser{" +
                "id=" + id +
                ", idnumber='" + idnumber + '\'' +
                ", username='" + username + '\'' +
                ", userphone='" + userphone + '\'' +
                ", password='" + password + '\'' +
                ", loginip='" + loginip + '\'' +
                ", loginime='" + loginime + '\'' +
                ", createtime='" + createtime + '\'' +
                ", ip='" + ip + '\'' +
                '}';
    }
}
